package com.easyexcel.usr.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Package: com.test.excel.model
 * @ClassName: RelationModel
 * @Author: shuaijun Wang
 * @CreateTime: 2020/10/13 15:32
 * @Description:
 */
@Data
public class Person {
    @NotNull(message="姓名不能为空")
    private String name;

    @NotNull(message="身份证号不能为空")
    private String idCard;

    @NotNull(message="中心不能为空")
    private String centerName;

    @NotNull(message="部门不能为空")
    private String departmentName;

    @NotNull(message="职位不能为空")
    private String position;

    @DateTimeFormat("yyyy-MM-dd")
    private Date entryTime;
    private String limitTime;

    @NotNull(message="手机号不能为空")
    private String phoneNum;

    @NotNull(message="邮箱不能为空")
    private String mail;



}
